import Vue from 'vue'
import Vuex from 'vuex'
import student from './student'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
      n:0,
      m:1,
      a:1
  },
  getters: {
    b(state){
      return state.a*2;
    }
  },
  mutations: {
    setA:(state)=>{
      state.a++
    },
    addN:(state)=>{
      state.n++;
    }
  },
  actions: {
  },
  modules: {
    student
  }
})
